import React from 'react'
import {withRouter} from 'react-router-dom'
import {log} from "../../../utils/commonfunc";
import './task-done-notice.css'
import {Icon} from "antd-mobile";
import {test} from "../../../utils/constants";
import {addLinkAndClick} from "../../GradePlayer/GradePlayer";

const TaskDoneNotice = props => {
    const goToTaskButtonClick = () => {
        const goBackEnd = test ? 'http://test.youtoball.com:8080/ren_wu' : 'http://www.youtoball.com:8080/ren_wu'
        addLinkAndClick(goBackEnd)
    }
    return null
    return (
        <div className='task-done-notice flex-space-between-align-center'>
            <p className='task-done-notice-info'>{props.taskInfo}</p>
            <div className='task-done-notice-link flex-align-center'>
                <p
                    onClick={goToTaskButtonClick}
                >去看看</p>
                <Icon type={'right'} size='xxs' color='#E8E8E8'/>
            </div>
        </div>
    )
}

export default withRouter(TaskDoneNotice)
